#===================
# Author: Huang Gang
# Date: 2017-09-19
#===================
#import web
#from app.helpers import misc
#from app.helpers import utils

#====================
# connect to database
#====================
import pymongo
client = pymongo.MongoClient('mongodb://127.0.0.1:27017/')
sjk = client.test
post = sjk.user_coll
sessions = sjk.sessions

## Use memcache to save sessions
#import memcache
#mc = memcache.Client(['127.0.0.1:11211'],debug=0)

## in develpment template caching is set to false
#cache = False

## global used template functions
#globals = utils.get_all_functions(misc)

## the domain where to get the forms from
#site_domain = '127.0.0.1:8000'

## email settings
#mail_sender = 'XTHJ <noreply@example.com>'

# set global base template
#view = web.template.render('app/views', cache=cache,  globals=globals)

## used as a salt
#encryption_key = 'a random string'

## in production the internal errors are emailed to us
#web.config.email_errors = ''
